import {ref,onMounted,computed} from 'vue';
export default function(){
let num = ref(0);
onMounted(() => {
    num.value = 10;
});
let count = computed(() => {
    return num.value * 2;
})
function add(){
    num.value++;
}
return{
    num,
    count,
    add
}
}




